package com.xiaozheng.service.impl;

import com.xiaozheng.dao.AccountDao;
import com.xiaozheng.dao.impl.AccountDaoImpl;
import com.xiaozheng.service.AccountService;

/**
 * @Package: com.xiaozheng.service.impl
 * @ClassName: AccountServiceImpl
 * @Author: 小政同学    QQ:xiaozheng666888@qq.com
 * @CreateTime: 2020/9/19 18:10
 * @What_is_this_file_for: 业务层实现类
 * @Description: 描述
 */
public class AccountServiceImpl implements AccountService {


    private AccountDao dao = new AccountDaoImpl();

    private int i =1;

    public AccountServiceImpl() {
        System.out.println("对象创建了！！");
    }

    /**
     * 模拟保存账户
     */
    @Override
    public void saveAccountService() {
        for (int j = 0;j<5;j++) {
            System.out.println("dao = " + dao);
            dao.saveAccountService();
            System.out.println("i = " + i);
            i++;
        }
    }
}
